{% extends "base.html" %}{% load i18n crm_tags %} {% block title %}{% translate "New call list" %}{% endblock %} {% block content %}

{% translate "New call list" %}

{% translate "Choose who to call, write what to say, and share the callers among the agents. People who asked not to be called are always left out." %}

{% translate "Cancel" %}
{% csrf_token %} {% if form.errors %}
{% translate "Some details need fixing. Look for the red notes below." %}
{% endif %}

{% translate "1. What it is for" %}

{% include "_field.html" with field=form.name %} {% include "_field.html" with field=form.purpose %} {% include "_field.html" with field=form.script wide=True %} {% include "_field.html" with field=form.due_date %}

{% translate "2. Who is on it" %}

{% translate "Leave a choice empty to include everyone." %}
{% include "_field.html" with field=form.statuses wide=True %} {% include "_field.html" with field=form.region %} {% include "_field.html" with field=form.district %} {% include "_field.html" with field=form.cell_group %} {% include "_field.html" with field=form.heard_from %} {% include "_field.html" with field=form.added_from %} {% include "_field.html" with field=form.added_to %} {% include "_field.html" with field=form.quiet_days %} {% include "_field.html" with field=form.language %} {% include "_field.html" with field=form.gender %} {% include "_field.html" with field=form.skip_busy wide=True %}
{% if preview %}
{% if preview.count == 0 %} {% translate "No callers fit these choices." %} {% translate "Leave out some choices and count again." %} {% elif preview.count > max_callers %} {% blocktranslate trimmed with n=preview.count max=max_callers %}{{ n }} callers fit: too many for one list (at most {{ max }}).{% endblocktranslate %} {% translate "Narrow the choices, for example by district or dates." %} {% else %} {% blocktranslate trimmed count n=preview.count %}{{ n }} caller fits these choices.{% plural %}{{ n }} callers fit these choices.{% endblocktranslate %} {{ preview.chosen }}
{% for c in preview.sample %}{{ c.name }}{% if not forloop.last %}, {% endif %}{% endfor %}{% if preview.count > preview.sample|length %}, …{% endif %}
{% endif %}
{% endif %}

{% translate "3. Who phones them" %}

{% include "_field.html" with field=form.agents wide=True %}
{% translate "Cancel" %}
{% endblock %}